Skip to content

Conversation

@OndroMih
Copy link
Contributor

  • stop automatically on error when executing commands
  • print Welcome message at the beginning
  • print message after shutdown, as the last message. Either OK message or error message.

public void run() {
if (glassFish != null) {
stopGlassFish();
// We restore the handlers because they are already removed from the logger in the shutdown hook
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is quite certainly bad idea, I will remember later why.
Btw logging should not be used for communication with the user, but we have this problem all over the sources. I already created an issue for that.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not communication with the user, it’s a proper log message at the end. It can happen in Kubernetes for example, if the service is misconfigured.

what else do you suggest? System.err?

* stop automatically on error when executing commands
* print Welcome message at the beginning
* print message after shutdown, as the last message. Either OK message or error message.
@OndroMih OndroMih force-pushed the ondromih-runnable-embedded-improvements branch from 6cb3e42 to 15d0fe1 Compare October 22, 2025 13:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants